//angular模块开发
var app = angular.module("myApp",[]);

app.controller("myCtrl",function($scope,$http){
	$http({
        method : "post",
        dataType: "json",
		withCredentials: true,	//跨域名请求。XHR：XMLHttpRequest (XHR) ，基于XML技术的Http请求
	    crossDomain: true,
	    contentType: "application/x-www-form-urlencoded",
        async:true,
        url : host + "/terminal/info/index"
    }).success(function(response){
    	if(response.code == 2000){
    		$scope.news_info_List = response.data.news_info_List;
    		$scope.industry_dynamics_List = response.data.industry_dynamics_List;
    		$scope.policy_List = response.data.policy_List;
    		$scope.planting_tech_List = response.data.planting_tech_List;
        	console.log(response.data);
        }else{
        	
        }
    });
})